package containers;

import java.util.HashMap;

import entities.Employee;

/**
 * A singleton class to access the dictionary containing the customers.
 * 
 * @author eks691
 */
public class EmployeeContainer {

	/** Private constructor to ensure that no instance is created. */
	private EmployeeContainer() {
	}

	/** The dictionary for accessing Employees */
	private static HashMap<Integer, Employee> dictionary;

	/**
	 * Return the dictionary that maps unique ids to Students
	 * 
	 * @return the dictionary that maps ids to students
	 */
	public static HashMap<Integer, Employee> dictionary() {
		if (dictionary == null) {
			/* Create the initial dictionary. */
			dictionary = new HashMap<Integer, Employee>(10);
			Employee employee1 = new Employee(1, "1");
			employee1.setName("Chris Griffin");
			dictionary.put(1, employee1);

		}
		return dictionary;
	}

}